#define _CRT_SECURE_NO_WARNINGS
#include <vector>
#include <iostream>
using namespace std;
class Solution {
public:
    void duplicateZeros(vector<int>& arr) {
        int cur = 0, dst = -1;
        int n = arr.size();
        while (dst < n - 1)
        {
            if (arr[cur] == 0)  dst += 2;
            else  dst++;
            if (dst < n - 1)  cur++;
        }
        if (dst == n)
        {
            arr[n - 1] = 0;
            dst -= 2;
            cur--;
        }
        while (cur >= 0)
        {
            if (arr[cur] == 0)
            {
                arr[dst--] = 0;
                arr[dst--] = 0;
            }
            else
            {
                arr[dst--] = arr[cur];
            }
            cur--;
        }
    }
};

class Solution {
public:
    void duplicateZeros(vector<int>& arr) {
        int cur = 0, dst = -1;
        int n = arr.size();
        while (dst < n - 1)
        {
            if (arr[cur] == 0)  dst += 2;
            else  dst++;
            if (dst < n - 1)  cur++;
        }
        cout << cur << dst << endl;

        if (dst == n)
        {
            arr[n - 1] = 0;
            dst -= 2;
            cur--;
        }
        while (cur >= 0)
        {
            if (arr[cur] != 0)
            {
                arr[dst--] = arr[cur--];
            }
            else
            {
                arr[dst--] = arr[cur];
                arr[dst--] = arr[cur--];
            }
        }
    }
};

#include <climits>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
bool isPrime(int x)
{
    if (x <= 1)  return false;
    for (int i = 2; i < sqrt(x); i++)
    {
        if (x % i == 0)  return false;
    }
    return true;
}
int main()
{
    string s;
    cin >> s;
    int maxi = 0;
    int mini = INT_MAX;
    int hash[26] = { 0 };
    for (auto ch : s)  hash[ch - 'a']++;
    for (int i = 0; i < 26; i++)
    {
        maxi = max(hash[i], maxi);
        if (hash[i] != 0)  mini = min(hash[i], mini);
    }
    if (isPrime(maxi - mini))
    {
        cout << "Lucky Word" << endl;
        cout << maxi - mini << endl;
    }
    else
    {
        cout << "No Answer" << endl;
        cout << 0 << endl;
    }
    return 0;
}